import { request } from "@/utils/request";
import base from "./base";
export const Api = {
    login(data) {
        return request.post(base.baseUrl + base.login, data)
    },
    getDateRangeDish(data) {
        return request.post(base.baseUrl + base.getDateRangeDish, data)
    },
    getDishList(data) {
        return request.post(base.baseUrl + base.getDishes, data)
    },
    addDateDish(data) {
        return request.post(base.baseUrl + base.addDateDish, data)
    },
    uploadFile(data) {
        return request.post(base.baseUrl + base.uploadFile, data)
    },
    addDish(data) {
        return request.post(base.baseUrl + base.addDish, data)
    },
    updateDish(data) {
        return request.post(base.baseUrl + base.updateDish, data)
    },
    deleteDish(data) {
        return request.post(base.baseUrl + base.deleteDish, data)
    },
    orderDate(data) {
        return request.post(base.baseUrl + base.orderDate, data)
    },
    cancelDate(data) {
        return request.post(base.baseUrl + base.cancelDate, data)
    },
    getDateDishUser(data) {
        return request.post(base.baseUrl + base.getDateDishUser, data)
    },
    getAllUsers(data) {
        return request.post(base.baseUrl + base.getAllUsers, data)
    },
    register(data) {
        return request.post(base.baseUrl + base.register, data)
    },
    updateUser(data) {
        return request.post(base.baseUrl + base.updateUser, data)
    },
    deleteUser(data) {
        return request.post(base.baseUrl + base.deleteUser, data)
    },
    exportUserDish(data) {
        return request.post(base.baseUrl + base.exportUserDish, data)
    },
    countUserDish(data) {
        return request.post(base.baseUrl + base.countUserDish, data)
    },
    uploadXlsxUsers(data) {
        return request.post(base.baseUrl + base.uploadXlsxUsers, data)
    },
    searchDetailUserDateDish(data) {
        return request.post(base.baseUrl + base.searchDetailUserDateDish, data)
    },
    updatePassword(data) {
        return request.post(base.baseUrl + base.updatePassword, data)
    },
    getNoticeList(data) {
        return request.post(base.baseUrl + base.getNoticeList, data)
    },
    createNotice(data) {
        return request.post(base.baseUrl + base.createNotice, data)
    },
    updateNotice(data) {
        return request.post(base.baseUrl + base.updateNotice, data)
    },
    updatePrice(data) {
        return request.post(base.baseUrl + base.updatePrice, data)
    },
    getPrice() {
        return request.post(base.baseUrl + base.getPrice)
    },
    sendAdvice(data) {
        return request.post(base.baseUrl + base.sendAdvice, data)
    },
    getAdvice(data) {
        return request.post(base.baseUrl + base.getAdvice, data)
    },
    deleteAdvice(data) {
        return request.post(base.baseUrl + base.deleteAdvice, data)
    }

}